<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .aa{
            /*background-image: url(https://m.imooc.com/static/wap/static/common/img/redrain/redrain-modal.png?t=2);*/
            background-image: url(../img/timg.jpg);
            position:fixed;
            left:0;
            right:0;
            top:0;
            bottom:0;

            /* 当页面的其余部分滚动时，当前元素不会移动。  */
            position:fixed;
            /* 让这个层充满整个屏幕 */

            height:50%;
            width:50%;
            left:0;
            top:0;
        }
        .div1{
            width: 50%;
            height: 50%;
            background-image: url(http://60.10.165.110:8002/img/web_bg.1240c5da.jpg);
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;
        }
		.aa1{
			background-image: url(http://img.mukewang.com/5ac3142b000166ec09360316.jpg?0.3425189099987229);
			position: fixed;
			left: 0;
			right: 0;
			top: 0;
			bottom: 0;
			margin: auto;
		}
    </style>
</head>
<body>
   <a href="https://www.imooc.com/learn/861" class="aa" ></a>
   <a href="https://www.imooc.com/learn/861" class="aa aa1" ></a>
   <a href="https://www.imooc.com/learn/861" class="aa aa1" ></a>
   <a href="https://www.imooc.com/learn/861" class="aa aa1" ></a>
   <a href="https://www.imooc.com/learn/861" class="aa aa1" ></a>
   <a href="https://www.imooc.com/learn/861" class="aa aa1" ></a>
   <a href="https://www.imooc.com/learn/861" class="aa aa1" ></a>
   <a href="demo2.html" class="aa" ></a>


    <!-- <a href="demo2.html" class="aa" ></a> -->
	
    <!-- <div class="div1" id="div_background"> -->

    </div>

</body>
<script src="../bangde/bangde.js"></script>
<script>
    //   let w,e,r,t,y
    //   w = document.querySelector('.aa');
    // e=  window.getComputedStyle(w,null).getPropertyValue('background-image').replace("url(","").replace(")",'');
    //   console.log(e){url:'http://127.0.0.1:8848/LG_bank/ivew/demo2.html'}{url:'http://60.10.165.110:8002/#/login'}
    /**
     * @param {Object}barring 过滤数组用于广告注入时自己广告不被清除掉
     * @param {Object 默认 sring} url 把其他广告地址替换成自己的广告地址，多个地址为数组格式
     * param {Array} bg 替换广告图片
     * @param {true/false} onOff 是否开启多余的标签删除 默认为false
     * */
    new ChooseToReplace({barring:['https://www.imooc.com','http://img.mukewang.com'],url:['baidu.com','zuxia.com','zhihu.com','taobao.com'],bg:['https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3850243155,2703833283&fm=26&gp=0.jpg','https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3154517026,1099257289&fm=26&gp=0.jpg'],onOff:true})
      // window.open(e)

  //    let a = ['https://www.imooc.com/learn/861','https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1208538952,1443328523&fm=26&gp=0.jpg','http://n.sinaimg.cn/news/1_img/upload/cf3881ab/66/w1000h666/20200224/f841-ipvnszf4019664.jpg','http://60.10.165.110:8002/img/web_bg.1240c5da.jpg']
  //     let l = ['https://www.imooc.com/','https://dss3.bdstatic.com','http://n.sinaimg.cn']
		// let c = true
  //     for (let i in a) {
  //         for(let s in l) {
		// 	  if(a[i].includes(l[s])) {
		// 		  console.log(a[i],'----',l[s],'=====',a[i].includes(l[s]))
		// 	  }
              
		// 	  // break;
  //         }
  //     }

  </script>